package com.lxyk.springcloud;

import com.lxyk.myrule.MySelfRibbonRuleConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

@SpringBootApplication
@EnableEurekaClient
/*想要使用定制 Ribbon 负载均衡策略的配置类，必须加上下边这个注解*/
@RibbonClient(name = "CLOUD-PAYMENT-SERVICE",configuration = MySelfRibbonRuleConfig.class)
public class OrderMain80 {
    public static void main(String[] args) {
        SpringApplication.run(OrderMain80.class,args);
    }
}
